#{extends '/template/main.html' /}
<style>
    .col-sm-2-label{
        float: left;
        padding-left: 10px;
        padding-right: 10px;
        width: 13%;
    }
    .col-sm-10-input{
        float: left;
        width: 18%;
    }
    .col-sm-10-row{
        float: left;
        width: 80%;
    }
    .td_input{
        border: 0;
        height: 30px;
        text-align: left;
        background-color:transparent;
    }
    .td_input_edit{
        height: 30px;
        text-align: left;
        border-radius:5px;
        width: 80%;
    }

    .Validform_checktip {
        text-align: left;
        line-height: 32px;
        padding-left: 10px;
    }


</style>

<script>
    var id='${id}';
    var pageNumber = '${pageNumber}';
    $(function () {

        //注册url值变化事件
//        $('#idUrl').onChange = function (newValue, oldValue) {
//            var splitUrl = newValue.split('/');
//            var controller = '';
//            for (var i = 0; i < splitUrl.length - 1; i++){
//                if (splitUrl[i].length > 0){
//                    var str = splitUrl[i];
//                    controller += '/' + str;
//                    if(i==splitUrl.length-3){
//                        $('#idEntity').val( str.substring(0,str.length - 4));
//                    }
//                }
//            }
//            $('#idController').val(controller);
//        }

    });



    function save() {
        $('#idForm').submit();
    }

</script>

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title" onclick="save()">
            <button id="idBtnSave" class="btn btn-info" onclick="save();">保存</button>
        </h3>
        <div class="panel-options">
            <a href="#" data-toggle="panel" >
                <span class="collapse-icon">&ndash;</span>
                <span class="expand-icon">+</span>
            </a>
        </div>
    </div>
    <div class="panel-body">

        <form id="idForm" method="POST" role="form" action="/power/admin/AdminBusinessCtrl/saveDetail" enctype="multipart/form-data" class="form-horizontal validate">
            <input id="idBusinessId" name="adminBusiness.id" value="${adminBusiness?.id}" type="hidden">
            <input id="idPageNumber" name="pageNumber" value="${pageNumber}" type="hidden">
            #{include '/power/admin/AdminBusinessCtrl/form.html'/}

        </form>

    </div>
</div>



<!-- Imported styles on this page -->
<link rel="stylesheet" href="/public/js/uikit/vendor/codemirror/codemirror.css">
<link rel="stylesheet" href="/public/js/uikit/uikit.css">
<link rel="stylesheet" href="/public/js/uikit/css/addons/uikit.almost-flat.addons.min.css">


<script src="/public/jquery/jquery.loadmask.js"></script>
<script src="/public/js/jquery-validate/jquery.validate.min.js"></script>
<script src="/public/js/wysihtml5/lib/js/wysihtml5-0.3.0.js"></script>
<script src="/public/js/wysihtml5/src/bootstrap-wysihtml5.js"></script>
<script src="/public/js/uikit/vendor/codemirror/codemirror.js"></script>
<script src="/public/js/uikit/vendor/marked.js"></script>
<script src="/public/js/uikit/js/uikit.min.js"></script>
<script src="/public/js/uikit/js/addons/htmleditor.min.js"></script>
<script src="/public/js/ckeditor/ckeditor.js"></script>
<script src="/public/js/ulmsale/common.js"></script>



<script src="/public/lib/layer/js/layer.js"></script>




